package cake.srcprojector.model;

import java.util.ArrayList;
import java.util.List;

import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlElementWrapper;
import javax.xml.bind.annotation.XmlRootElement;


@XmlRootElement(name = "SrcProjectorPage")
@XmlAccessorType(XmlAccessType.FIELD)
public class Page {

	
	@XmlAttribute(name = "pageid")
	private String pageId = null;
	
	
	@XmlAttribute(name = "title")
	private String title = null;
	
	
	@XmlElementWrapper(name = "SubPageList")
	private List<SubPage> subPageList = new ArrayList<SubPage>();
	
	
	public Page() {
	}
	public Page(String pageId, String title) {
		this.pageId = pageId;
		this.title = title;
	}
	
	
	public String getPageId() {
		return pageId;
	}
	public void setPageId(String pageId) {
		this.pageId = pageId;
	}
	
	
	public String getTitle() {
		return title;
	}
	public void setTitle(String title) {
		this.title = title;
	}
	
	
	public List<SubPage> getSubPageList() {
		return subPageList;
	}
	public void setSubPageList(List<SubPage> subPageList) {
		this.subPageList = subPageList;
	}
	
	
}
